//请求方式和参数
import request from "@/api/https.js"
export const partyApi = {
	partySlideList: (params = {}) => {
		return request.request({
			url: "partySlideList",
			method: "GET",
			data: params
		})
	},
	partyMemberStructure: (params = {}) => {
		return request.request({
			url: "partyMemberStructure",
			method: "GET",
			data: params
		})
	},
	partyRankList: (params = {}) => {
		return request.request({
			url: "partyRankList",
			method: "GET",
			data: params
		})
	},
	partyFocusList: (params = {}) => {
		return request.request({
			url: "partyFocusList",
			method: "GET",
			data: params
		})
	},
	aboutInfo: (params = {}) => {
		return request.request({
			url: "aboutInfo",
			method: "GET",
			data: params
		})
	},
	partyMemberList: (params = {}) => {
		return request.request({
			url: "partyMemberList",
			method: "GET",
			data: params
		})
	},
	newsDetail: (params = {}) => {
		return request.request({
			url: "getNewsDetail",
			method: "GET",
			data: params
		})
	},
	partyStudyList: (params = {}) => {
		return request.request({
			url: "partyStudyList",
			method: "GET",
			data: params
		})
	},
	partyActivityList: (params = {}) => {
		return request.request({
			url: "partyActivityList",
			method: "GET",
			data: params
		})
	},
}



// //请求方式和参数
// function pagerouter(Vue, vm) {
// 	//我的
// 	let partySlideList = (data = {}) => uni.$u.get('partySlideList', data); //党建首页轮播图
// 	let partyMemberStructure = (data = {}) => uni.$u.get('partyMemberStructure', data); //党组成员
// 	let partyRankList = (data = {}) => uni.$u.get('partyRankList', data); //党建排行
// 	let partyFocusList = (data = {}) => uni.$u.get('partyFocusList', data); //党组织新闻列表
// 	let aboutInfo = (data = {}) => uni.$u.get('aboutInfo', data); //党组织介绍
// 	let partyMemberList = (data = {}) => uni.$u.get('partyMemberList', data); //成员列表
// 	let newsDetail = (data = {}) => uni.$u.get('getNewsDetail', data); //文章详情
// 	let partyStudyList = (data = {}) => uni.$u.get('partyStudyList', data); //在线学习
// 	let partyActivityList = (data = {}) => uni.$u.get('partyActivityList', data); //党建活动列表

// 	return {
// 		partySlideList,
// 		partyMemberStructure,
// 		partyRankList,
// 		partyFocusList,
// 		aboutInfo,
// 		partyMemberList,
// 		partyStudyList,
// 		newsDetail,
// 		partyActivityList,
// 	}
// }
// export default {
// 	pagerouter
// }
